<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>杂记</title>
    <link rel="stylesheet" href="layui/css/layui.css">
    <link rel="stylesheet" href="css/home.css">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes"/>
</head>
<body>

<div id="header">
    <div class="nav">
        <a href="#" class="logo">Lee Blog</a>
        <div id="nav-btn" class="btn">
            <i id="btn" class="layui-icon layui-icon-addition"></i>
        </div>
        <ul class="nav-bar">
            <li><a href="home.html" th:href="@{/home}">首页</a></li>
            <li><a href="technology.html" th:href="@{/technology}">技术</a></li>
            <li class="active"><a href="life.html" th:href="@{/life}">杂记</a></li>
            <li><a href="time.html" th:href="@{/time}">时间轴</a></li>
            <li><a href="message.html" th:href="@{/message}">留言</a></li>
            <li><a href="about.html" th:href="@{/about}">关于我</a></li>
        </ul>
    </div>
</div>

<div class="layui-fluid btn-nav">
    <ul>
        <li><a href="home.html" th:href="@{/home}">首页</a></li>
        <li><a href="technology.html" th:href="@{/technology}">技术</a></li>
        <li class="active"><a href="life.html" th:href="@{/life}">杂记</a></li>
        <li><a href="time.html" th:href="@{/time}">时间轴</a></li>
        <li><a href="message.html" th:href="@{/message}">留言</a></li>
        <li><a href="about.html" th:href="@{/about}">关于我</a></li>
    </ul>
</div>


<div class="layui-fluid title">
    <h1>杂记</h1>
    <p>既然已经上了生活的贼船，不如做个快乐的海盗。</p>
</div>

<div id="main" class="layui-container">
    <div class="article-item layui-anim layui-anim-up" th:each="article : ${lifeArticle}">
        <a href="" th:href="@{/articleDetail(id=${article.id})}"><h2 th:text="${article.title}">Java从入门到精通</h2></a>
        <p th:text="${article.desc}">全网最好的Java入门课程，让你从年头学到年尾！</p>
        <i class="layui-icon layui-icon-time" th:text="${article.time}"> 2020年3月24日</i>
        <i class="layui-icon layui-icon-template-1" th:text="${article.type}">技术</i>
        <i class="layui-icon layui-icon-note" th:text="${article.label}"> Java</i>
    </div>
</div>

<div id="footer"><a href="http://www.beian.miit.gov.cn/">Copyright © 2020 LeeBlog 鄂ICP备20013163号</a></div>


<script src="js/jquery-3.4.1.js"></script>
<script src="js/function.js"></script>
<script src="layui/layui.js"></script>
<script src="js/home.js"></script>
<script src="js/jquery.rotate.min.js"></script>
</body>
</html>